object ScoreErrorDemo {
  def main(args: Array[String]): Unit = {
    // 修正1
    val studentName: String = "李四"
    // 修正2
    val math: Int = 85
    val chinese: Int = 58
    val english: Int = 72

    val total: Int = math + chinese + english
    // 修正3
    val avg: Double = total.toDouble / 3
    // 修正4
    val isPass: Boolean = (math >= 60) || (chinese >= 60) || (english >= 60)
    // 修正5
    println(s"姓名: $studentName, 总分: $total 分, 平均分: ${"%.1f".format(avg)} 分, 是否及格: $isPass")
  }
}
